package com.msi.gui;

public class Settings {

    private static Settings instance = null;

    private int index;

    public int getIndex() {
        return index;
    }
    
    private float filling = (float) 0.5;
    private int vertexCount = 20;

    private int algIndex = 0;
    private double minDensity;
    private double maxDensity;
    private Integer minVertices;
    private Integer maxVertices;
    private Integer iterations;

    private Settings() {

    }

    public static Settings getInstance() {
        if (instance == null) {
            instance = new Settings();
        }
        return instance;
    }

    public float getFilling() {
        return filling;
    }

    public void setFilling(float filling) {
        this.filling = filling;
    }

    public int getVertexCount() {
        return vertexCount;
    }

    public void setVertexCount(int vertexCount) {
        this.vertexCount = vertexCount;
    }

    public int getAlgIndex() {
        return algIndex;
    }

    public void setAlgIndex(int algIndex) {
        this.algIndex = algIndex;
    }

    public void setMinDensity(double minDensity) {
        this.minDensity = minDensity;
    }

    public void setMaxDensity(double maxDensity) {
        this.maxDensity = maxDensity;
    }

    public void setMinVertices(Integer minVertices) {
        this.minVertices = minVertices;
    }

    public void setMaxVertices(Integer maxVertices) {
        this.maxVertices = maxVertices;
    }

    public void setIterations(Integer iterations) {
        this.iterations = iterations;
    }

    public double getMinDensity() {
        return minDensity;
    }

    public double getMaxDensity() {
        return maxDensity;
    }

    public Integer getMinVertices() {
        return minVertices;
    }

    public Integer getMaxVertices() {
        return maxVertices;
    }

    public Integer getIterations() {
        return iterations;
    }

}
